import React, { createContext, useContext, useState } from 'react';

const XkContext = createContext();

export function XkProvider({ children }) {
  const [xkData, setXkData] = useState({});
  return (
    <XkContext.Provider value={{ xkData, setXkData }}>
      {children}
    </XkContext.Provider>
  );
}

export function useXk() {
  return useContext(XkContext);
} 